/*
 * @Author: 清羽
 * @Date: 2022-10-02 13:43:11
 * @LastEditTime: 2022-10-05 14:47:56
 * @LastEditors: you name
 * @Description:
 */
// /business/upShelf

import request from '@/utils/request'

// 上架店铺
export function upShelfBusiness (businessId) {
	return request({
		url: `/business/upShelf`,
		method: 'post',
		data: businessId
	})
}

// 获取店铺图片素材
export function getBusinessPic () {
	return request({
		url: `/business//pic`,
		method: 'get'
	})
}

// 添加店铺图片素材
export function addBusinessPic (data) {
	return request({
		url: `/business/pic/upload`,
		method: 'post',
		data
	})
}

// 添加店铺轮播图
export function addSlideshow (data) {
	return request({
		url: `/business/slideshow/add`,
		method: 'post',
		data
	})
}

// 获取店铺轮播图
export function getSlideshow () {
	return request({
		url: `/business/slideshowList`,
		method: 'get'
	})
}

// 修改店铺轮播图
export function editSlideshow (data) {
	return request({
		url: `/business/slideshow/edit`,
		method: 'post',
		data
	})
}

// 删除店铺轮播图
export function delSlideshow (data) {
	return request({
		url: `/business/slideshow/del`,
		method: 'post',
		data
	})
}